package com.jcl.cloud.services.crawler.catchnew.task;

public class CatchNewTaskWrap implements Runnable{

    private CatchNewHandler catchNewHandler;

    private String crawlerId;

    @Override
    public void run() {
        try {
            this.catchNewHandler.execute(crawlerId);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }


    public CatchNewTaskWrap(CatchNewHandler catchNewHandler,String crawlerId){
        this.catchNewHandler = catchNewHandler;
        this.crawlerId = crawlerId;
    }

}
